/*
 * @Author: PC9527\Jack sophia2152@qq.com
 * @Date: 2023-07-17 01:52:20
 * @LastEditors: PC9527\Jack sophia2152@qq.com
 * @LastEditTime: 2023-08-02 16:59:19
 * @Description:
 */
/**
 * @description: Login interface parameters
 */
export interface LoginParams {
  username: string;
  password: string;
}

export interface RoleInfo {
  roleName: string;
  value: string;
}

/**
 * @description: Login interface return value
 */
export interface LoginResultModel {
  token: string;
  expires_in: string | number;
  expires_time: string;
  // role: RoleInfo;
}

/**
 * @description: Get user information return value
 */
export interface GetUserInfoModel {
  // roles?: RoleInfo[];
  // 用户id
  id: string | number;
  // 用户名
  username: string;
  // 真实名字
  true_name: string;
  // 头像
  face: string;
  // 部门
  department?: string;
}
